package com.wanxi.education.controller.front;

import com.wanxi.education.common.CommonResult;
import com.wanxi.education.model.vo.agency.AgencyInfoVo;
import com.wanxi.education.model.vo.agency.AgencyVo;
import com.wanxi.education.service.AgencyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: WangRui
 * @Description:
 * @Date: Created in 2021/9/24 0024
 * @Version: 1.0
 */
@RestController("AgencyFrontController")
@RequestMapping("/front/agency")
@Api(tags = "合作机构管理 （前台管理）")
@Slf4j
public class AgencyController {

    @Autowired
    private AgencyService agencyService;

    @ApiOperation("查询所有机构信息")
    @GetMapping("/findInfoAll")
    public CommonResult<List<AgencyInfoVo>> findInfoAll(){
        List<AgencyInfoVo> list = agencyService.findInfoAll();
        return CommonResult.success(list);
    }

/*    @ApiOperation("查询未绑定机构信息(前台不确定哪里需要)")
    @GetMapping("/findInfoAllNotBinding")
    public CommonResult<List<AgencyInfoVo>> findInfoAllNotBinding(){
        List<AgencyInfoVo> list = agencyService.findInfoAllNotBinding();
        return CommonResult.success(list);
    }*/
}
